home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Educational Software Cooperative 4
/
Educational Software Cooperative 4.iso
/
trac
/
figiii-8.tra
< prev
next >
Wrap
Text File
|
1994-06-27
|
768b
|
26 lines
0999 0 Origin
OP 0
X 0
Y 0
Z 0
0 Dummy included to reserve read space
ONE 1 Constant one
STRT RD OP Read OP, X, Y
LD OP Load OP
SU ONE Find difference for test
BNSTOP If < 1 go to halt
BZ ADD If = 1 go to add routine
SU ONE If > 1 see if it is 2
BZ SUB If = 2 go to subtract
STOP HT0000 If not stop
SUB LD X Load X
SU Y Subtract Y
ST Z Store at Z
BUPRNT Go to print
ADD LD X Load X
AD Y Add Y
ST Z Store at Z
PRNT PC OP Print
BUSTRT Go back to start
ENSTRT End of code with starting location